<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class mhutang extends base_model {

    public function __construct($tbl_name = null) {
        parent::__construct('trxhutang');
    }

    function get_hutang_retail($koderetail) {
        $this->db->where('koderetail', $koderetail);
        return $this->db->get('v_saldo_hutang');
    }

    function get_chart_hutang_retail($koderetail) {
        $this->db->where('koderetail', $koderetail);
        return $this->db->get('web_hutang');
    }
    
    function get_piutang_retail($koderetail) {
        $this->db->where('koderetail', $koderetail);
        return $this->db->get('v_saldo_piutang');
    }

    function get_chart_piutang_retail($koderetail) {
        $this->db->where('koderetail', $koderetail);
        return $this->db->get('web_piutang');
    }

}

/* End of file mhutang.php */
/* Location: ./application/controllers/mhutang.php */